<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="js/jquery.insert.js?v={yun:}$config.cachecode{/yun}"></script>
<script language="javascript">
 
  	
	$(function() {
		$(".status").click(function() {
			$(".seolist").hide();
			var seomodel = $("#seomodel").val();
			$(".list_public").show();
			$(".list_" + seomodel).show();
			$("input[name=pid]").val($(this).attr("pid"));
			$.layer({
				type : 1,
				title : '可选择参数',
				offset : [ '80px', '' ],
				closeBtn : [ 0, true ],
				border : [ 10, 0.3, '#000', true ],
				area : [ '550px', '320px' ],
				page : {
					dom : "#infobox"
				}
			});
		});
	});
	
	function clickseoSureBtn() {
		var codewebarr = "";
		$("input[name=seocheckbox]:checked").each(function() { //由于复选框一般选中的是多个,所以可以循环输出
			if (codewebarr == "") {
				codewebarr = "{" + $(this).val() + "}";
			} else {
				codewebarr = codewebarr + " - {" + $(this).val() + "}";
			}
		});
		$("input[name='seocheckbox']").attr('checked', false);
		var pid = $("input[name=pid]").val();
		$('#' + pid).setCaret();
		$('#' + pid).insertAtCaret(codewebarr);
		layer.closeAll();
	}
	function change_list(id) {
		$(".seolist").hide();
		$("#list_" + id).show();
	}
</script>

<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<title>后台管理</title>
</head>
<body class="body_ifm">
<div id="infobox" style="display:none; padding:0px 20px;">
	<div class="admin_Prompt" style="width:500px; margin:10px 10px;">
        <div class="admin_Prompt_span">  提示：下面的标识符请根据页面对应添加，否则无法正常显示！ </div>
    </div>
    <form action="index.php" target="supportiframe" method="get" id="formstatus">
        <input name="pid" value="0" type="hidden">
        <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
        <div class="admin_seo_tck_box" style="overflow-x:hidden">

        {yun:}assign var="sort" value=1{/yun}
        {yun:}foreach item=rows key=key from=$arr_data.seoconfig{/yun}
              <div style="display:none;" class="seolist list_{yun:}$key{/yun}">
                {yun:}foreach item=row key=k from=$rows{/yun}
                <div class="admin_seo_tck_box_list" style="padding:5px 0;">
                <input type="checkbox" name="seocheckbox" value="{yun:}$k{/yun}" id="{yun:}$k{/yun}" class="admin_seo_tck_box_check">
                <span class="admin_seo_tck_box_l"><label for="{yun:}$k{/yun}">{yun:}$row{/yun}</span>
               代码：{{yun:}$k{/yun}}</label>
                </div>
               {yun:}/foreach{/yun}
               </div>
            {yun:}assign var="sort" value=$sort+1{/yun}
        {yun:}/foreach{/yun}
        </div>
        <p style="text-align:center; clear:both;">
    <input class="submit_btn" type="button" value="确认"  onClick="clickseoSureBtn();" >&nbsp;&nbsp;
    <input class="cancel_btn" type="button" value="取消" onclick="layer.closeAll();">
    </p>
    </form>
</div>


<div class="infoboxp"> 
<div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
<div class="admin_new_tip_list_cont">
<div class="admin_new_tip_list">如果您不是程序员或不清楚用法，请不要随意修改SEO标识符！网站的SEO部分是网站重要部分，请不要经常修改！</div>
<div class="admin_new_tip_list">根据百度新算法，网站标题请勿堆积关键字，具体请参考<a href="https://ziyuan.baidu.com/college/documentinfo?id=1576&qq-pf-to=pcqq.c2c" target="_blank" style="color:#00F">教程</a>。</div>
</div>
</div>
<div class="clear"></div>


<div class="tag_box mt10">
<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
<form name="myform" target="supportiframe" action="index.php?m=seo&c=Save" method="post" class="layui-form">
  <table width="100%" class="table_form" style="background:#fff;">
   <tr>
              <td colspan="2" bgcolor="#f0f6fb"><div class="admin_bold">SEO信息管理</div></td>
            </tr>
      <tr>
      <th>页面名称：</th>
      <td><input class="input-text" type="text" name="seoname" size="40" value="{yun:}$info.seoname{/yun}"/></td>
    </tr>
        <tr class="admin_table_trbg" >
      <th>所属类型：</th>
      <td>
        <div class="layui-form-item">
          <div class="layui-input-inline">
            <select name="seomodel" lay-filter="seomodel" id="seomodel">
              <option value="">请选择</option>
              {yun:}foreach item=row key=key from=$arr_data.seomodel{/yun}
                <option value="{yun:}$key{/yun}"
                  {yun:}if $key eq $info.seomodel{/yun}
                  selected
                  {yun:}/if{/yun}
                >{yun:}$row{/yun}</option>
              {yun:}/foreach{/yun}
            </select>
          </div>
        </div>
      </td>
    </tr>
        <tr class="admin_table_trbg" >
      <th>SEO标识符：</th>
      <td><input class="input-text" type="text" name="ident" size="40" value="{yun:}$info.ident{/yun}" id='ident'/></td>
    </tr>
    <tr>
      <th>使用范围：</th>
      <td>
        <div class="layui-form-item">
          <div class="layui-input-inline">
            <select name="did" lay-filter="did" id="did" lay-search>
              {yun:}foreach from=$Dname key=key item=dlist{/yun}
                <option value="{yun:}$key{/yun}"
                  {yun:}if $info.did == $key{/yun}
                  selected
                  {yun:}/if{/yun}
                >{yun:}$dlist{/yun}</option>
              {yun:}/foreach{/yun}
            </select>
          </div>
        </div>
      </td>     
    </tr> 
        <tr  class="admin_table_trbg">
      <th>伪静态规则：</th>
      <td>
             <input class="input-text" type="text" id="rewrite_url" name="rewrite_url" size="60" value="{yun:}$info.rewrite_url{/yun}"/><span class="admin_web_tip">如：/job/{id}.html 多数用于详情页</span>
            </td>
    </tr>
        <tr >
      <th>原始路径：</th>
      <td>
             <input class="input-text" type="text" id="php_url" name="php_url" size="60" value="{yun:}$info.php_url{/yun}"/>
             <span class="admin_web_tip">如：/job/index.php?c=comapply （只需模块链接 无需参数 与上对应）</span>
            </td>
    </tr>
      <tr class="admin_table_trbg" >
      <th>网站标题（title）：</th>
      <td>
              <div style="height:5px;"></div>
            <textarea name="title" id="title" cols="60" rows="3" style=" float:left">{yun:}$info.title{/yun}</textarea>
          <div style="float:left; padding-left:10px;">
            <div style="padding-bottom:5px;"><span class="admin_web_tip">一般不超过80个字符，根据百度新算法，请勿堆积关键字，具体请参考<a href="https://ziyuan.baidu.com/college/documentinfo?id=1576&qq-pf-to=pcqq.c2c" target="_blank" style="color:#00F">教程</a>。</span></div>
            <input class="input-text status" type="button" name="select" pid="title" style="width:60px" value="选择参数"/></div>
            </td>
    </tr>
    <tr >
      <th>网站关键字（keywords）：</th>
      <td>
              <div style="height:5px;"></div>
             <textarea name="keywords" id="keywords" cols="60" rows="3" style=" float:left">{yun:}$info.keywords{/yun}</textarea>
           <div style="float:left; padding-left:10px;">
            <div style="padding-bottom:5px;"><span class="admin_web_tip">一般不超过100个字符</span></div>
            <input class="input-text status" type="button" name="select" pid="keywords" style="width:60px" value="选择参数"/></div>
      </td>
    </tr>
      <tr class="admin_table_trbg" >
      <th>网站描述（description）：</th>
      <td>
              <div style="height:5px;"></div>
       <textarea name="description" id="description" cols="60" rows="5" style=" float:left">{yun:}$info.description{/yun}</textarea><div style="float:left; padding-left:10px;">
            <div style="padding:15px 0;"> <span class="admin_web_tip">一般不超过200个字符</span></div>
              <input class="input-text status" type="button" name="select" pid="description" style="width:60px" value="选择参数"/>
              </div>
      </td>
            
    </tr>
    <tr>
      <th>&nbsp;</th>
			<td align="left" >
            <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
      {yun:}if is_array($info){/yun}
          <input type="hidden" name="id" size="40" value="{yun:}$info.id{/yun}"/>
          <input class="admin_button" type="submit" name="update" value="&nbsp;更 新&nbsp;"  />
          {yun:}else{/yun}
        <input class="admin_button" type="submit" name="add" value="&nbsp;添 加&nbsp;"  />
        {yun:}/if{/yun}
        <input class="admin_button" type="reset" name="reset" value="&nbsp;重 置 &nbsp;" />
      </td>
    </tr>
  </table>
</form>
</div>
</div>
{yun:}include file="$adminstyle/checkdomain.htm"{/yun}

<script type="text/javascript">
  layui.use(['layer', 'form'], function(){
    var layer = layui.layer
    ,form = layui.form
    ,$ = layui.$;
  });
</script>
</body>
</html>